//
//  JSLoadingFailedView.h
//  NiubilityProject
//
//  Created by Apple on 2018/3/6.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface JSLoadingFailedView : UIView

@property (nonatomic, strong) UIImageView *imageView;
@property (nonatomic, assign) UIEdgeInsets edgeInsets;
@property (nonatomic, strong) UIButton    *refreshButton;
@property (nonatomic, copy) void (^retryHandle)(void);

+ (void)showLoadFailedInView:(UIView *)view;

+ (void)showLoadFailedInView:(UIView *)view retryHandle: (void (^)(void))retryHandle;

+ (void)showLoadFailedInView:(UIView *)view edgeInset:(UIEdgeInsets)edgeInset;
+ (void)showLoadFailedInView:(UIView *)view edgeInset:(UIEdgeInsets)edgeInset retryHandle: (void (^)(void))retryHandle;

+ (void)hideLoadFailedForView:(UIView *)view;

+ (JSLoadingFailedView *)loadFailedForView:(UIView *)view;

+ (void)showLoadFailedInView:(UIView *)view topEdge:(CGFloat)topEdge retryHandle: (void (^)(void))retryHandle;

- (void)showInView:(UIView *)view;

- (void)hide;

@end
